<?php

namespace App\Http\Controllers\Admin\Report\Repository;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Http\Controllers\Admin\Report\Repository\Account
 *
 * @property int $id
 * @property int|null $member_id 产生的用户
 * @property int|null $type 1发展关系奖励2下级消费返利3注册奖励4提现5购买套餐或参与活动充值次数6后台充值7购买讲解消费8提现拒绝退款
 * @property float|null $price 增加
 * @property string|null $desc 描述
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property \Carbon\Carbon|null $deleted_at
 * @property-read \App\Http\Controllers\Admin\Member\Repository\Member|null $member
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Http\Controllers\Admin\Report\Repository\Account onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereDesc($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereMemberId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account wherePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Http\Controllers\Admin\Report\Repository\Account whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Http\Controllers\Admin\Report\Repository\Account withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Http\Controllers\Admin\Report\Repository\Account withoutTrashed()
 * @mixin \Eloquent
 */
class Account extends Model
{
    use SoftDeletes;
    //
    protected $table = 'account_logs';
    protected $dates = ['deleted_at'];
    public function member(){
        return $this->belongsTo('App\Http\Controllers\Admin\Member\Repository\Member','member_id');
    }
}
